<?php

namespace CZan\Utils;


class Numbers
{

    /**
     * 判断两段数字是否有交叉重叠的，有重叠或者数字有异常返回true
     * @param $minimumValue1
     * @param $maximumValue1
     * @param $minimumValue2
     * @param $maxmumValue2
     * @return bool
     */
    public static function checkjj($minimumValue1, $maximumValue1, $minimumValue2, $maxmumValue2)
    {
        if ($minimumValue1 <= $maximumValue1 && $minimumValue2 <= $maxmumValue2) {
            return max($minimumValue1, $minimumValue2) <= min($maximumValue1, $maxmumValue2);
        } else {
            return true;
        }
    }

}
